package com.plum.admin.modules.social.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.time.LocalDateTime;
import com.plum.admin.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 社交登录表
 * </p>
 *
 * @author 子丶沫
 * @since 2021-09-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_social")
@ApiModel(value="SysSocial对象", description="社交登录表")
public class SysSocial implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户主键")
    @TableId(value = "id",type = IdType.NONE)
    private String id;

    @ApiModelProperty(value = "头像")
    @TableField("avatar")
    private String avatar;

    @ApiModelProperty(value = "社交的Id")
    @TableField("open_id")
    private String openId;

    @ApiModelProperty(value = "社交类型")
    @TableField("platform")
    private Integer platform;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "系统账号名称")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty(value = "社交昵称")
    @TableField("nick_name")
    private String nickName;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("create_by")
    private Long createBy;


}
